package org.essilab.analyzer.analyzer;

/**
 * A class used to represent a page.
 * 
 * A page has the following attributes :
 *  - a text content
 *  - a timestamp
 *  - a title
 *
 * @author Mohamed-Amine Chouchene, Ahcène Idinarere, Vincent Nock, Alain
 * Janin-Manificat
 */
public class Page {

    private String _text = null;
    private String _timeStamp = null;
    private String _title = null;

    /**
     * Return the text of the page.
     *
     * @return String - the text of the page.
     */
    public String getText() {
        return this._text;
    }

    /**
     * Return the timestamp of the page.
     *
     * @return String - the timestamp of the page.
     */
    public String getTimeStamp() {
        return this._timeStamp;
    }

    /**
     * Return the title of the page.
     *
     * @return String - the title of the page.
     */
    public String getTitle() {
        return this._title;
    }

    /**
     * Set the text of the page.
     *
     * @param nexText String - the new text.
     */
    public void setText(String newText) {
        this._text = newText;
    }

    /**
     * Set the timestamp of the page.
     *
     * @param timeStamp String - the new timestamp.
     */
    public void setTimeStamp(String timeStamp) {
        this._timeStamp = timeStamp;
    }

    /**
     * Set the title of the page.
     *
     * @param newTitle String - the new title.
     */
    public void setTitle(String newTitle) {
        this._title = newTitle;
    }
}
